home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 1: Comms & Networking / Almathera Ten on Ten - Disc 1: Comms & Networking.iso / amiga-useful / perl / src / makefile < prev    next >
Makefile  |  1995-05-04  |  6KB  |  196 lines

  1. #
  2. # Amiga GCC 2.1 Configured Makefile
  3. #
  4. #
  5. #    DEST        ---    destination directory
  6. #    EXTHDRS        ---    headers external to the cwd
  7. #    HDRS        ---    headers which reside in the cwd
  8. #    INCLUDES    ---    Include directory (ies) for files.
  9. #    CDEFS        ---    Various C definitions.
  10. #    CFLAGS        ---    cflags for compilation
  11. #    LIBS        ---    (local) libraries for additional routines
  12. #    EXTLIBS        ---    (external) libraries for additional routines
  13. #    LINKER        ---    linker (typically c)
  14. #    LINTFLAGS    ---    lint flags (if any)
  15. #    MAKEFILE    ---    the name of this makefile (used by mkmf)
  16. #    OBJS        ---    objects made from programs in the cwd
  17. #    EXTOBJS        ---    objects made from programs not in the cwd
  18. #    PRINT        ---    print facility to print out sources, etc.
  19. #    PROGRAM        ---    the final program name
  20. #    SRCS        ---    the sources which reside in the cwd
  21. #    CSHS        ---    csh scripts
  22. #    MANS        ---    manual pages
  23. #    JUNKS        ---    junk programs which may be removed
  24. #    OWNER        ---    the owner's name for installation purposes
  25.  
  26. DEST          = Max2:bin
  27. EXTHDRS          = 
  28. HDRS          = 
  29. INCLUDES      =    
  30. CDEFS          = -DAMIGA -DAMIVERSION="0.1.0"
  31. DEBUG         = 
  32. CFLAGS          = $(INCLUDES) $(CDEFS) $(DEBUG)
  33. YFLAGS        = -d
  34. LIBS          =
  35. EXTLIBS          =    
  36. CC            =    gcc
  37. LINKER          = gcc
  38. LINKFLAGS     = -lm
  39. LINTFLAGS     =    $(INCLUDES) $(CDEFS) 
  40. MAKEFILE      = Makefile
  41. OBJS          = array.o \
  42.         cmd.o \
  43.         cons.o \
  44.         consarg.o \
  45.         doarg.o \
  46.         doio.o \
  47.         dolist.o \
  48.         dump.o \
  49.         eval.o \
  50.         form.o \
  51.         hash.o \
  52.         perl.o \
  53.         perly.o \
  54.         regcomp.o \
  55.         regexec.o \
  56.         stab.o \
  57.         str.o \
  58.         toke.o \
  59.         usersub.o \
  60.         util.o
  61. EXTOBJS          =    
  62. PRINT          = printfiles
  63. PROGRAM          = perl
  64. SRCS          = array.c \
  65.         cmd.c \
  66.         cons.c \
  67.         consarg.c \
  68.         doarg.c \
  69.         doio.c \
  70.         dolist.c \
  71.         dump.c \
  72.         eval.c \
  73.         form.c \
  74.         hash.c \
  75.         perl.c \
  76.         perly.c \
  77.         regcomp.c \
  78.         regexec.c \
  79.         stab.c \
  80.         str.c \
  81.         toke.c \
  82.         usersub.c \
  83.         util.c
  84.  
  85. CSHS          =    
  86. MANS          =    
  87. DOCS          =
  88. JUNKS          =    $(PROGRAM) 
  89. DISTRIB       = $(PROGRAM) 
  90.  
  91. #    Standard Targets 
  92. #    -------- -------
  93. #
  94. #    all:        ---  equivalent to ``make program''
  95. #    <program>    ---  make the entire program; <program> == name
  96. #    clean:        ---  remove all re-makeable files and junks
  97. #    depend:        ---  update the dependency list.
  98. #    diff:        ---  find diffs between latest and present versions
  99. #    index:        ---  list all procedures/#defines (result on stdout)
  100. #    install:    ---  install the final result in the destination dir
  101. #    lint:        ---  lint the files (result on stdout)
  102. #    print:        ---  print the sources (result on stdout)
  103. #    program:    ---  equivalent to make <program>
  104. #    tags:        ---  create a tags file for use with gnu
  105. #    update:        ---  makes and installs program (if out of date)
  106. #    <dest/program>    ---  equivalent to make update
  107. #       archive:        ---  makes an Lha archive of all files in DISTRIB
  108. #       version:    ---  updates version number and date.
  109. #
  110. #    make install installs the result in the destination directory;
  111. #    make update checks that the result in the destination directory is
  112. #    up to date.
  113. #
  114.  
  115. all:        $(PROGRAM)
  116.  
  117. $(PROGRAM):     $(OBJS) $(LIBS) $(EXTOBJS)
  118.         @echo "Loading $(PROGRAM) ... "
  119.         @$(LINKER) $(CFLAGS) $(OBJS) $(EXTOBJS) $(LIBS) $(EXTLIBS) -o $(PROGRAM) $(LINKFLAGS)
  120.         @echo "done"
  121.  
  122. clean:;        @delete $(OBJS) $(JUNKS) FORCE
  123.  
  124. diff:;        @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
  125.  
  126. index:;        @ctags -wx $(HDRS) $(SRCS)
  127.  
  128. install:    $(PROGRAM)
  129.         @echo Installing $(PROGRAM) in $(DEST)
  130.         @copy $(PROGRAM) $(DEST)
  131.  
  132. lint:;        $(CC) $(CFLAGS) -c -Wall -pedantic $(SRCS)
  133.  
  134. print:;        @$(PRINT) $(HDRS) $(SRCS)
  135.  
  136. program:        $(PROGRAM)
  137.  
  138. tags:           $(HDRS) $(SRCS); @etags -t $(HDRS) $(SRCS)
  139.  
  140. update:        $(DEST)/$(PROGRAM)
  141.  
  142. archive:    $(DISTRIB)
  143.         @lha -x a $(PROGRAM).lha $(DISTRIB)
  144.  
  145.  
  146. $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
  147.         @make -f $(MAKEFILE) DEST=$(DEST) install clean
  148.  
  149. depend:
  150.     $(CC) -MM $(SRCS) >>Makefile
  151.  
  152. ## Auto generated dependencies will appear below.
  153.  
  154. array.o : array.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  155.   stab.h spat.h arg.h cmd.h array.h hash.h 
  156. cmd.o : cmd.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  157.   stab.h spat.h arg.h cmd.h array.h hash.h 
  158. cons.o : cons.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  159.   stab.h spat.h arg.h cmd.h array.h hash.h perly.h 
  160. consarg.o : consarg.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
  161.   form.h stab.h spat.h arg.h cmd.h array.h hash.h 
  162. doarg.o : doarg.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  163.   stab.h spat.h arg.h cmd.h array.h hash.h 
  164. doio.o : doio.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  165.   stab.h spat.h arg.h cmd.h array.h hash.h 
  166. dolist.o : dolist.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  167.   stab.h spat.h arg.h cmd.h array.h hash.h 
  168. dump.o : dump.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  169.   stab.h spat.h arg.h cmd.h array.h hash.h 
  170. eval.o : eval.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  171.   stab.h spat.h arg.h cmd.h array.h hash.h 
  172. form.o : form.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  173.   stab.h spat.h arg.h cmd.h array.h hash.h 
  174. hash.o : hash.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  175.   stab.h spat.h arg.h cmd.h array.h hash.h 
  176. perl.o : perl.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  177.   stab.h spat.h arg.h cmd.h array.h hash.h perly.h patchlevel.h 
  178. perly.o : perly.c INTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  179.   stab.h spat.h arg.h cmd.h array.h hash.h 
  180. regcomp.o : regcomp.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
  181.   form.h stab.h spat.h arg.h cmd.h array.h hash.h INTERN.h regcomp.h 
  182. regexec.o : regexec.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
  183.   form.h stab.h spat.h arg.h cmd.h array.h hash.h regcomp.h 
  184. stab.o : stab.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  185.   stab.h spat.h arg.h cmd.h array.h hash.h 
  186. str.o : str.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  187.   stab.h spat.h arg.h cmd.h array.h hash.h perly.h 
  188. toke.o : toke.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  189.   stab.h spat.h arg.h cmd.h array.h hash.h perly.h 
  190. usersub.o : usersub.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h \
  191.   form.h stab.h spat.h arg.h cmd.h array.h hash.h 
  192. util.o : util.c EXTERN.h perl.h config.h handy.h regexp.h str.h util.h form.h \
  193.   stab.h spat.h arg.h cmd.h array.h hash.h 
  194.  
  195. ## end autogenerated depends
  196.